<%
if(session.getAttribute("logname")==null){
%>
<Script language="javascript">
window.location.href="index.jsp";
</Script>
<% }%>